{extend name="public/base" /}
{block name="body"}
<div class="layui-fluid">
    <div class="layui-row">
        <div class="layui-col-xs12 layui-col-sm12 layui-col-md12">
			<div class="widget-head">
				<div class="widget-title a m-cf">配置资料</div>
			</div>
			<div class="widget-body layui-col-sm12 layui-col-md12 layui-col-lg12">
				<form action="{:url('')}" class="layui-form" method="post">
            		<div class="layui-form-item">
                		<label class="layui-form-label">* 配置标识</label>
                		<div class="layui-input-inline">
                   			<input type="text" name="name" value="{$info.name}" autocomplete="off" placeholder="请输入配置标识" class="layui-input">
                		</div>
                		<div class="layui-form-mid layui-word-aux">由英文字母和下划线组成，必须以字母开头</div>
            		</div>            
            		<div class="layui-form-item">
                		<label class="layui-form-label">* 配置标题</label>
                		<div class="layui-input-inline">
                    		<input type="text" name="title" value="{$info.title}" autocomplete="off" placeholder="请输入配置标题" class="layui-input">
                		</div>
            		</div>            
            		<div class="layui-form-item">
                		<label class="layui-form-label">* 配置类型</label>
                		<div class="layui-input-inline">
                    		<select name="type">
                        		{volist name="Think.config.config_type_list" id="type"}
                        		<option value="{$key}">{$type}</option>
                        		{/volist}                        
                    		</select>
                		</div>
            		</div>
            		<div class="layui-form-item">
                		<label class="layui-form-label">* 配置分组</label>
                		<div class="layui-input-inline">
                    		<select name="group">
                        		{volist name="Think.config.config_group_list" id="group"}
                        		<option value="{$key}">{$group}</option>
                        		{/volist}
                    		</select>
                		</div>
            		</div>
            		<div class="layui-form-item">
                		<label class="layui-form-label">配置值</label>
                		<div class="layui-input-inline">
                    		<textarea name="value" autocomplete="off" placeholder="请输入配置值" class="layui-textarea">{$info.value|default=''}</textarea>
                		</div>
            		</div>
            		<div class="layui-form-item">
                		<label class="layui-form-label">配置项</label>
                		<div class="layui-input-inline">
                    		<textarea name="extra" autocomplete="off" placeholder="请输入配置项" class="layui-textarea">{$info.extra|default=''}</textarea>
                		</div>
                		<div class="layui-form-mid layui-word-aux">如果是枚举型 需要配置该项</div>
            		</div>
            		<div class="layui-form-item">
                		<label class="layui-form-label">说明</label>
                		<div class="layui-input-inline">
                    		<textarea name="remark" autocomplete="off" placeholder="请输入说明" class="layui-textarea">{$info.remark|default=''}</textarea>
                		</div>
                		<div class="layui-form-mid layui-word-aux">配置详细说明</div>
            		</div>
            		<div class="layui-form-item">
                		<div class="layui-input-block">
                    		<input type="hidden" name="id" value="{$info.id|default=''}">
                    		<button class="layui-btn" lay-filter="*" lay-submit="">保存</button>
                    		<button class="layui-btn layui-btn-primary" onclick="javascript:history.back(-1);return false;">返回</button>
                		</div>
            		</div>
        		</form>
			</div>
		</div>
	</div>
</div>
{/block}